﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IoTCM
{
    public class Session
    {
        public Session(string user, UserRights rights)
        {
            Token = Guid.NewGuid().ToString();
            User = user;
            Rights = rights;
            LastAccess = Start = DateTime.Now;            
        }

        public UserRights Rights { get; private set; }
        public string User { get; private set; }
        public string Token { get; private set; }
        public DateTime Start { get; private set; }
        public DateTime LastAccess { get; set; }

    }
}
